home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / X11 / Xaw / Tree.h < prev    next >
C/C++ Source or Header  |  2006-04-12  |  5KB  |  139 lines

  1. /*
  2.  * $Xorg: Tree.h,v 1.4 2001/02/09 02:03:47 xorgcvs Exp $
  3.  *
  4.  
  5. Copyright 1990, 1994, 1998  The Open Group
  6.  
  7. Permission to use, copy, modify, distribute, and sell this software and its
  8. documentation for any purpose is hereby granted without fee, provided that
  9. the above copyright notice appear in all copies and that both that
  10. copyright notice and this permission notice appear in supporting
  11. documentation.
  12.  
  13. The above copyright notice and this permission notice shall be included in
  14. all copies or substantial portions of the Software.
  15.  
  16. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  17. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  19. OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  20. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  21. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  22.  
  23. Except as contained in this notice, the name of The Open Group shall not be
  24. used in advertising or otherwise to promote the sale, use or other dealings
  25. in this Software without prior written authorization from The Open Group.
  26.  
  27.  * Copyright 1989 Prentice Hall
  28.  *
  29.  * Permission to use, copy, modify, and distribute this software for any
  30.  * purpose and without fee is hereby granted, provided that the above
  31.  * copyright notice appear in all copies and that both the copyright notice
  32.  * and this permission notice appear in supporting documentation.
  33.  * 
  34.  * Prentice Hall and the authors disclaim all warranties with regard
  35.  * to this software, including all implied warranties of merchantability and
  36.  * fitness.  In no event shall Prentice Hall or the authors be liable
  37.  * for any special, indirect or cosequential damages or any damages whatsoever
  38.  * resulting from loss of use, data or profits, whether in an action of
  39.  * contract, negligence or other tortious action, arising out of or in
  40.  * connection with the use or performance of this software.
  41.  * 
  42.  * Authors:  Jim Fulton, MIT X Consortium,
  43.  *           based on a version by Douglas Young, Prentice Hall
  44.  * 
  45.  * This widget is based on the Tree widget described on pages 397-419 of
  46.  * Douglas Young's book "The X Window System, Programming and Applications 
  47.  * with Xt OSF/Motif Edition."  The layout code has been rewritten to use
  48.  * additional blank space to make the structure of the graph easier to see
  49.  * as well as to support vertical trees.
  50.  */
  51. /* $XFree86: xc/lib/Xaw/Tree.h,v 1.6 2001/01/17 19:42:35 dawes Exp $ */
  52.  
  53.  
  54. #ifndef _XawTree_h
  55. #define _XawTree_h
  56.  
  57. #include <X11/Xmu/Converters.h>
  58.  
  59. /******************************************************************************
  60.  * 
  61.  * Tree Widget (subclass of ConstraintClass)
  62.  * 
  63.  ******************************************************************************
  64.  * 
  65.  * Parameters:
  66.  * 
  67.  *  Name                Class              Type            Default
  68.  *  ----                -----              ----            -------
  69.  * 
  70.  *  autoReconfigure     AutoReconfigure    Boolean         FALSE
  71.  *  background          Background         Pixel           XtDefaultBackground
  72.  *  foreground          Foreground         Pixel           XtDefaultForeground
  73.  *  gravity             Gravity            XtGravity       West
  74.  *  hSpace              HSpace             Dimension       20
  75.  *  lineWidth           LineWidth          Dimension       0
  76.  *  vSpace              VSpace             Dimension       6
  77.  * 
  78.  * 
  79.  * Constraint Resources attached to children:
  80.  * 
  81.  *  treeGC              TreeGC             GC              NULL
  82.  *  treeParent          TreeParent         Widget          NULL
  83.  * 
  84.  * 
  85.  *****************************************************************************/
  86.  
  87.                                         /* new instance field names */
  88. #ifndef _XtStringDefs_h_
  89. #define XtNhSpace "hSpace"
  90. #define XtNvSpace "vSpace"
  91. #define XtCHSpace "HSpace"
  92. #define XtCVSpace "VSpace"
  93. #endif
  94.  
  95. #define XtNautoReconfigure "autoReconfigure"
  96. #define XtNlineWidth "lineWidth"
  97. #define XtNtreeGC "treeGC"
  98. #define XtNtreeParent "treeParent"
  99. #define XtNgravity "gravity"
  100.  
  101.                                         /* new class field names */
  102. #define XtCAutoReconfigure "AutoReconfigure"
  103. #define XtCLineWidth "LineWidth"
  104. #define XtCTreeGC "TreeGC"
  105. #define XtCTreeParent "TreeParent"
  106. #define XtCGravity "Gravity"
  107.  
  108. #define XtRGC "GC"
  109.  
  110. #ifndef OLDXAW
  111. #ifndef XawNdisplayList
  112. #define XawNdisplayList "displayList"
  113. #endif
  114.  
  115. #ifndef XawCDisplayList
  116. #define XawCDisplayList "DisplayList"
  117. #endif
  118.  
  119. #ifndef XawRDisplayList
  120. #define XawRDisplayList "XawDisplayList"
  121. #endif
  122. #endif
  123.                                         /* external declarations */
  124. extern WidgetClass treeWidgetClass;
  125.  
  126. typedef struct _TreeClassRec *TreeWidgetClass;
  127. typedef struct _TreeRec      *TreeWidget;
  128.  
  129. _XFUNCPROTOBEGIN
  130.  
  131. void XawTreeForceLayout
  132. (
  133.  Widget        tree
  134.  );
  135.  
  136. _XFUNCPROTOEND
  137.  
  138. #endif /* _XawTree_h */
  139.